package com.game.framework.dao.entity;

import org.springframework.data.annotation.Id;

/**
 * 游戏数据对象父类，所有的数据存储类，必须继承此类
 */
public class BaseEntity<ID> {
    @Id
    private ID id;

    public ID getId() {
        return id;
    }

    public void setId(ID id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                "id=" + id +
                '}';
    }
}
